import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class EditMemberFrame extends JFrame{
    JLabel memberName = new JLabel("Member Name");
    static JTextField userName = new JTextField();
    JButton bOkay = new JButton("Ok");

    EditMemberFrame(){
        Image bGround = ReadImage.getImage("http://wallpapers.wallbase.cc/rozne/wallpaper-389121.jpg");
        Browser bGPanel = new Browser( bGround );
        add(bGPanel);

        memberName.setBounds(50,50,100,20);
        userName.setBounds(200,50,150,20);
        bOkay.setBounds(350,250,50,20);

        bGPanel.add( memberName );
        bGPanel.add( userName );
        bGPanel.add( bOkay);

        setSize(750,400);
        setVisible(true);
        clickOK();
    }

    public void clickOK(){
        bOkay.addActionListener( new ActionListener() {
            public void actionPerformed( ActionEvent ae ){
                EditMemberDetailsFrame details = new EditMemberDetailsFrame();
            }
        });

    }

}

